def iterationDivision(L):
    result =  [];
    for i in range(L[0],L[1]):
        if i % 7 == 0:
            result.append(i);
    return result;

L = [1,1000];

result = iterationDivision(L);
for item in result:
    print(item);